import request from '@/utils/request'

// 查询支部活动心得列表
export function listExperience(query) {
  return request({
    url: '/system/experience/list',
    method: 'get',
    params: query
  })
}

// 查询支部活动心得详细
export function getExperience(id) {
  return request({
    url: '/system/experience/' + id,
    method: 'get'
  })
}

// 新增支部活动心得
export function addExperience(data) {
  return request({
    url: '/system/experience',
    method: 'post',
    data: data
  })
}

// 修改支部活动心得
export function updateExperience(data) {
  return request({
    url: '/system/experience',
    method: 'put',
    data: data
  })
}

// 删除支部活动心得
export function delExperience(id) {
  return request({
    url: '/system/experience/' + id,
    method: 'delete'
  })
}
